<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>查看日志详情</title>
  <meta name="description" content="" />
  <meta name="author" content="pc" />
  <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1, minimum-scale=1, user-scalable=no" />
  <meta name="screen-orientation"content="portrait">
  <meta name="format-detection" content="telephone=no" />
  <#include "/inc/common.html">
</head>
<body>
     <div style="margin-bottom: 10px">
	    <input type="button" value="返回" style="width: 80px; height: 30px; vertical-align: bottom; line-height: 10px;" class="btn-primary" onclick="sysLogBack()" /> 
		<input type="button" value="取消" style="width: 80px; height: 30px; vertical-align: bottom; line-height: 10px;" class="btn-primary" onclick="sysLogCancle()" /> 
	 </div>
	 <div>
      <form id="sysLogUpdateFm" name="sysLogUpdateFm"  method="post" action="">
          <input type="hidden" name="id" value="${sysLog.id}"/>
          <table border="0" cellpadding="0"  cellspacing="0"
	         class="formlist" style="width: 100%; table-layout: fixed;">
                      <tr>
                            <th>日志标题</th>
                            <td><textarea id='title'  name='title' value='${sysLog.title}'  rows="2" >${sysLog.title}</textarea></td>
                            <th>日志类型</th>
                            <td><select id='type' name='type' style="width: 174px;" value='${sysLog.type}'
								class="publicSelect2" >
								<#if sysLog.type??&&sysLog.type ='1'>
									<option value="1" selected>正常</option>
									<option value="2" >异常</option>
								</#if>
								<#if sysLog.type??&&sysLog.type ='2'>
								     <option value="1" >正常</option>
									<option value="2" selected>异常</option>
								</#if>
							  </select></td>
                      </tr>
                      <tr>
                            <th>执行操作用户</th>
                            <td><input id='userId' name='userId' value='${sysLog.userId}' /></td>
                            <th>请求URI</th>
                            <td><textarea id='requestUri'  name='requestUri' value='${sysLog.requestUri}'  rows="2" >${sysLog.requestUri}</textarea></td>
                      </tr>
                      <tr>
                            <th>执行类名</th>
                            <td><textarea id='className'  name='className' value='${sysLog.className}'  rows="2" >${sysLog.className}</textarea></td>
                            <th>执行方法名称</th>
                            <td><textarea id='methodName'  name='methodName' value='${sysLog.methodName}'  rows="2" >${sysLog.methodName}</textarea></td>
                      </tr>
                      <tr>
                            <th>功能模块名称</th>
                            <td><textarea id='functionName'  name='functionName' value='${sysLog.functionName}'  rows="2" >${sysLog.functionName}</textarea></td>
                            <th>用户代理</th>
                            <td><textarea id='userAgent'  name='userAgent' value='${sysLog.userAgent}'  rows="2" >${sysLog.userAgent}</textarea></td>
                      </tr>
                      <tr>
                            <th>操作IP地址</th>
                            <td><textarea id='remoteIp'  name='remoteIp' value='${sysLog.remoteIp}'  rows="2" >${sysLog.remoteIp}</textarea></td>
                            <th>操作方式</th>
                            <td><input id='requestMethod' name='requestMethod' value='${sysLog.requestMethod}' /></td>
                      </tr>
                      <tr>
                            <th>请求参数</th>
                            <td><textarea id='requestParams'  name='requestParams' value='${sysLog.requestParams}'  rows="2" >${sysLog.requestParams}</textarea></td>
                            <th>设备MAC</th>
                            <td><input id='requestMac' name='requestMac' value='${sysLog.requestMac}' /></td>
                      </tr>
                      <tr>
                            <th>异常信息</th>
                            <td><textarea id='exception'  name='exception' value='${sysLog.exception}'  rows="2" >${sysLog.exception}</textarea></td>
                            <th>执行线程</th>
                            <td><textarea id='actionThread'  name='actionThread' value='${sysLog.actionThread}'  rows="2" >${sysLog.actionThread}</textarea></td>
                      </tr>
                      <tr>
                            <th>开始执行时刻</th>
                            <td><input id='actionStartTime'  name='actionStartTime' class="required date" readonly='true' onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"    value="<#if sysLog.actionStartTime ??>${sysLog.actionStartTime?string('yyyy-MM-dd HH:mm:ss')}</#if>"/></td>
                            <th>结束执行时刻</th>
                            <td><input id='actionEndTime'  name='actionEndTime' class="required date" readonly='true' onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"    value="<#if sysLog.actionEndTime ??>${sysLog.actionEndTime?string('yyyy-MM-dd HH:mm:ss')}</#if>"/></td>
                      </tr>
                      <tr>
                            <th>执行耗时 单位(毫秒)</th>
                            <td><input id='actionTime'  name='actionTime' value='${sysLog.actionTime}'/></td>
                            <th>创建日志时间</th>
                            <td><input id='createDate'  name='createDate' class="required date" readonly='true' onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"    value="<#if sysLog.createDate ??>${sysLog.createDate?string('yyyy-MM-dd HH:mm:ss')}</#if>"/></td>
                      </tr>
                      <tr>
                            <th>数据库实例</th>
                            <td><textarea id='dbname'  name='dbname' value='${sysLog.dbname}'  rows="2" >${sysLog.dbname}</textarea></td>
                      </tr>

          </table>
       </form>
     </div> 
     <script type="text/javascript">
	 	$(function(){
			$(".publicSelect2").select2();
		    Waves.init();
		    Waves.attach('.waves');
		})
       function sysLogCancle(){//取消
          $(':input','#sysLogUpdateFm') 
			    .not(':button, :submit, :reset, :hidden') 
			    .val('') 
			    .removeAttr('checked') 
			    .removeAttr('selected');
       }
       function sysLogBack(){//返回
          parent.layer.close(parent.layer.getFrameIndex(window.name));  // 关闭layer
		  window.parent.location.reload(); //刷新父页面
          //window.location.href=$.common.basePath+'/sysLog/init';
       }
     </script>
  </body>
</html>
